package com.jumei.flume.common;

import com.alibaba.fastjson.annotation.JSONField;

public class Params {

    @JSONField(name = "id")
    private String id;
    
    @JSONField(name = "type")
    private String type;
    
    public String getId() {
        return id;
    }
    public void setId(String id) {
        this.id = id;
    }
    public String getType() {
        return type;
    }
    public void setType(String type) {
        this.type = type;
    }
    
    public Params(String id, String type) {
        super();
        this.id = id;
        this.type = type;
    }
    
    public Params() {
        super();
        // TODO Auto-generated constructor stub
    }
    
    @Override
    public String toString() {
        return (new StringBuilder().append(type).append("->").append(id)).toString();
    }
    public static void main(String[] args) {
        Params p = new Params();
        p.setId("a");
        p.setType("b");
        System.out.println(p);
    }
}

